package com.xuanniu.framework.common;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by tiansj on 15/6/25.
 */
public class Tree implements Serializable {

    private long id;
    private long pid;
    private String text;
    private String iconCls;
    private Map attributes;
    private List<Tree> children;
    private long sort;

    public Tree(){}

    public Tree(long id, long pid, String text) {
        this.id = id;
        this.pid = pid;
        this.text = text;
    }

    public Tree(long id, long pid, String text, String iconCls) {
        this.id = id;
        this.pid = pid;
        this.text = text;
        this.iconCls = iconCls;
    }

    public Tree(long id, long pid, String text, String iconCls, long sort) {
        this.id = id;
        this.pid = pid;
        this.text = text;
        this.iconCls = iconCls;
        this.sort = sort;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public Map getAttributes() {
        return attributes;
    }

    public void setAttributes(Map attributes) {
        this.attributes = attributes;
    }

    public List<Tree> getChildren() {
        return children;
    }

    public void setChildren(List<Tree> children) {
        this.children = children;
    }

    public long getSort() {
        return sort;
    }

    public void setSort(long sort) {
        this.sort = sort;
    }
}
